package com.golxen.framework.event.condition.dao.entity;


import com.golxen.framework.db.dao.AbstractDaoEntity;
import com.golxen.framework.event.condition.IUserConditionData;

import java.math.BigInteger;
import java.util.Objects;

public class UserConditionData extends AbstractDaoEntity implements IUserConditionData {

	private long userId;

	private int conditionId;

	private BigInteger value = BigInteger.ZERO;

	private String param = "";

	private int type;



	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		if (this.userId != userId) {
			this.userId = userId;
			setUpdateOption();
		}
	}

	public int getConditionId() {
		return conditionId;
	}

	public void setConditionId(int conditionId) {
		if (this.conditionId != conditionId) {
			this.conditionId = conditionId;
			setUpdateOption();
		}
	}


	public BigInteger getValue() {
		return value;
	}

	public void setValue(BigInteger value) {
		if (!Objects.equals(this.value, value)) {
			this.value = value;
			setUpdateOption();
		}
	}

	public String getParam() {
		return param;
	}

	public void setParam(String param) {
		if(!Objects.equals(this.param, param)) {
			this.param = param;
			setUpdateOption();
		}
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		if(this.type != type) {
			this.type = type;
			setUpdateOption();
		}
	}

}
